package com.google.code.jarquivoretorno.core.exc;

public abstract class AbstractException extends Exception {

	private static final long serialVersionUID = -421672372631877117L;

	private IError error;

	public AbstractException(IError error, Throwable cause) {
		super(error.getDescription(), cause);
		this.error = error;
	}

	public AbstractException(IError error) {
		super(error.getDescription());
		this.error = error;
	}

	public IError getError() {
		return this.error;
	}

}